import type { App } from 'vue'
import {
  DesktopOutlined,
  HddOutlined,
  FormOutlined,
  UserOutlined,
  LinkOutlined,
  FilterOutlined,
  WarningOutlined,
  ExpandOutlined,
  InfoCircleOutlined,
  DeploymentUnitOutlined,
  MenuFoldOutlined,
  MenuUnfoldOutlined,
} from '@ant-design/icons-vue'

export const icons = {
  DesktopOutlined,
  HddOutlined,
  FormOutlined,
  UserOutlined,
  LinkOutlined,
  FilterOutlined,
  WarningOutlined,
  ExpandOutlined,
  InfoCircleOutlined,
  DeploymentUnitOutlined,
  MenuFoldOutlined,
  MenuUnfoldOutlined,
}

export function setupAntIcons(app: App) {
  for (const [key, component] of Object.entries(icons)) {
    app.component(key, component)
  }
}
